/* 
 * File:   eph_table.hpp
 * Author: gian
 *
 * Created on January 30, 2013, 2:19 PM
 */

#ifndef EPH_TABLE_HPP
#define	EPH_TABLE_HPP

#include <string>
#include <vector>

struct eph_table_entry {
    double t;
    double x,y,z;
    double vx,vy,vz;
};

class eph_table {
public:
    eph_table(const std::string& filename, double time_start, double time_end);
    virtual ~eph_table();
    void get(int i, eph_table_entry& interpolated);
    void get(eph_table_entry& interpolated);
private:
    double mTimeStart;
    double mTimeEnd;
    double mTimeStep;
    std::vector<eph_table_entry> mTable;
};

#endif	/* EPH_TABLE_HPP */

